package com.hbnu.exercise.work;

import java.lang.reflect.Array;
import java.util.Arrays;

public class SortString
{
    public static void main(String[] args)
    {
        String number = "91 27 46 38 50";
        String[] temp = number.split(" ");
        int[] nums = new int[5];
        for (int i = 0; i < nums.length; i++)
            nums[i] = Integer.parseInt(temp[i]);
        Arrays.sort(nums);
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < nums.length; i++)
        {
            sb.append(nums[i]);
            if (i != nums.length - 1)
                sb.append(" ");
        }
        System.out.println(sb);
    }
}
